<% content_for :head do %>
		<%= stylesheet_link_tag 'blogs' %>
<% end %>


<div class="section">
	<div class="alert alert-success"><h2 class="container">草稿箱</h2>
		<%= link_to '<< 返回', list_blogs_path, class: 'btn btn-warning dropdown-toggle' %></div>
</div>

	<!--草稿列表-->
	<div class="container ">
		<ul class="list-group ">
			<% @show_drafts.each do |draft| %>
					<li class="custom-info-item  text-org list-group-item">
						<div class="row container">
							<div class="container">
								<h3><%= draft.title %></h3>

								<p><%= get_formatting_time(draft.created_at) %> </p>

								<div class="blog-list"><%= get_blog_show_content( strip_tags(draft.content).html_safe ).html_safe%></div>

								<%= link_to 'View details »', blog_url(draft.id), class: 'btn btn-info btn-sm' %>
							</div>
						</div>
					</li>
			<% end %>
		</ul>

	</div>

	<div id="paginator" class="container">
		<%= paginate @show_drafts %>
	</div>

